package com.semp.jadoma.core.dao;

import org.hibernate.Session;

import com.semp.jadoma.core.model.DogReference;
import com.semp.jadoma.core.util.HibernateUtil;

public class DogReferenceDAO {

	public final static DogReference find(Long dogId) {
		Session session = HibernateUtil.getSessionFactory().openSession();
		session.beginTransaction();
		DogReference toReturn = (DogReference) session.get(DogReference.class, dogId);
		session.close();
		return toReturn;
	}
	
}
